<template>
<div class="jump-wrapper" v-if="col.rs">
    <span v-if="useLink">
      <router-link  :to="{path:'/page/list',query:{ctl:info.model,[info.param]:info.val}}">
        {{col.rs}}</router-link>
    </span>
    <span v-else>
        {{col.rs}}
    </span>
</div>
</template>
<script type="text/ecmascript-6">
import tool from 'src/util/tool';
import util from '_util/index';
import in_array from 'in_array';


export default {
  data() {
    return {
      info: [],
      name: null,
      id: null,
      ctl: null,
    }
  },
  watch: {
    col: function() {
      this.setInfo();
    }
  },
  methods: {

    setInfo() {
      this.info = {};
      if(this.col.rs){

          this.info = this.col.conf;

      }

    }
  },
  props: ['col'],
  computed: {
      useLink(){
          let not_use = ['Refundorders','Trodetail','Trosp'];
          let ctl = this.$route.query.ctl;
//          return !in_array(ctl,not_use);
          return true;
      }
  },
  created() {
    this.setInfo();
  }
};
</script>
<style rel="stylesheet/less" lang="less">@dir: "cell/";</style>
